package com.power.sifa.approve.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;
import org.springframework.data.repository.query.Param;
import com.power.sifa.approve.model.Cloud_sign_license;

import javax.transaction.Transactional;
import java.io.Serializable;
import java.util.List;

/**
 * 文书云签章 持久层(hibernate)
 */

public interface Cloud_sign_licenseDao extends JpaRepository<Cloud_sign_license, Serializable>, JpaSpecificationExecutor<Cloud_sign_license>, Repository<Cloud_sign_license, Serializable>, Cloud_sign_licenseDaoCustom<Cloud_sign_license, Serializable> {

   @Modifying
   @Transactional
   @Query("delete  from Cloud_sign_license s where  s.id in (:ids) ")
   void removeByIds(@Param("ids") List<Integer> ids);
}
